<?php
/**
 * Lithium: the most rad php framework
 *
 * @copyright     Copyright 2012, Union of RAD (http://union-of-rad.org)
 * @license       http://opensource.org/licenses/bsd-license.php The BSD License
 */

use lithium\security\Auth;
?>


<!doctype html>
<html>
<head>
	<?php echo $this->html->charset();?>
	<title>{NP Psych} &gt; <?php echo $this->title(); ?></title>
	<?php echo $this->html->style(array('debug', 'lithium')); ?>
	<?php echo $this->scripts(); ?>
	<?php echo $this->html->link('Icon', null, array('type' => 'icon')); ?>
</head>
<body class="app">
	<div id="container">
		<div id="header">
			<h1>{ NP Psych } : <?=strtolower($this->title());?></h1>
			<?php if (Auth::check('default')): ?>
				<p style="float:right; position:relative; top:20px;"><?=$this->html->link('Logout',array('controller' => 'sessions', 'action' => 'delete'))?></p>
			<?php endif; ?>
			<br>
		</div>
		<?php if (Auth::check('default')): ?>
				<div id="menu">
					<span><?=$this->html->link('Home', 'Pages::index'); ?></span>
					<span style="margin-left: 15px;"><?=$this->html->link('Patients', array('Patients::index')); ?></span>
					<span style="margin-left: 10px; font-style:italic;">Add to DB:</span>
					<span style="margin-left: 15px;"><?=$this->html->link('Icd9', array('IcdNineEntries::add')); ?></span>
					<span style="margin-left: 15px;"><?=$this->html->link('Icd Code', array('IcdCodes::add')); ?></span>
					<span style="margin-left: 15px;"><?=$this->html->link('Physical Symptoms', array('PhysicalSymptomAnswers::add')); ?></span>
					<span style="margin-left: 15px;"><?=$this->html->link('Neuropsychological Symptoms', array('NeuropsychologicalSymptomAnswers::add')); ?></span>
					<span style="margin-left: 15px;"><?=$this->html->link('Prescription', array('PrescriptionRecords::add')); ?></span>
					<span style="margin-left: 15px;"><?=$this->html->link('Diagnostic Test', array('MedicalTestAnswers::add')); ?></span>
					<span style="margin-left: 15px;"><?=$this->html->link('Psychological Test', array('PsychologicalTestAnswers::add')); ?></span>
					<span style="margin-left: 15px;"><?=$this->html->link('Medical Test', array('MedicalTests::add')); ?></span>
				</div>
		<?php endif; ?>
		<div id="content">
			<?php echo $this->content(); ?>
		</div>
		<div id="footer" style="margin-top: 50px;">
			<?php echo $this->html->link('@email: ianralls', 'mailto:ianralls19@gmail.com'); ?>
		</div>
	</div>
</body>
</html>